module.exports = app => {
  const { router, controller } = app;
  const v = app.config.version;

  router.get('/', controller.app.home);
  router.post('/login', `/${v}/login`, controller.auth.login);
  router.get('/logout', `/${v}/logout`, controller.auth.logout);
  router.get('/imageValidate', `/${v}/imageValidate`, controller.auth.imageValidate);


  router.resources('users', `/${v}/users`, 'user');
  router.resources('students', `/${v}/students`, 'student');
  router.resources('teachers', `/${v}/teachers`, 'teacher');
  router.resources('paperdocs', `/${v}/paperdocs`, 'paperdoc');

};
